package com.llmcu.source.javase.objectoriented.internalclass;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * 只导入外部类
 *
 * @author liuling
 * @date 2024/10/5 18:57
 */
public class Entry {
    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
        map.put("A", "一");
        map.put("B", "二");
        map.put("C", "三");
        map.put("D", "四");
        map.put("E", "五");
        System.out.println(map);
        Set<Map.Entry<String, String>> entries = map.entrySet();
        for (Map.Entry<String, String> entry : entries) {
            System.out.println(entry.getKey() + ":" + entry.getValue());
        }
    }
}
